<div class="maintop">当前位置：文章分类列表
    <a href="javascript:;" action="<?=$basepath?>" class="mainFrame button icon-ccw">返回</a>
    <a href="javascript:;" action="<?=$basepath?>_add" class="mainFrame button icon-cw">刷新</a>
    <? if(ISDEBUG){ ?>
        <a href="javascript:$('.debuginfo').toggle();" class="button">调试信息</a>
    <? } ?>
</div>
<div id="mainbody">
    <div class="main">
    <div class="info">
        <? $this->display('editor',array('textareaid'=>'hiddencontent','uploadbutton'=>'uploadbutton','inputid'=>'icon','loadjsandcss'=>true)); ?>
        <form name="category_add_save" action="<?=$basepath?>_add_save" method="POST" target="ajax" func="form_submit">
            <div style="display:none;" class="hiddencontentdiv"><textarea id="hiddencontent" name="hiddencontent"></textarea></div>
            <dl><dt>标题名称：</dt><dd><input type="text" name="title" class="wtxt" /></dd></dl>
            <dl><dt>上级分类：</dt><dd><select type="text" name="parentid">
                        <option value="0" selected>主分类</option>
                        <?php
                        if($parentcategory){
                            foreach($parentcategory as $k=>$v){
                                echo '<option value="',$k,'">',$v,'</option>';
                            }
                        }
                        ?>
                    </select></dd></dl>
            <dl><dt>图标样例：</dt><dd><input type="text" name="icon" id="icon" class="wtxt" value="#" /></dd><dd><input type="button" name="uploadbutton" id="uploadbutton" value="选择" /></dd></dl>
            <dl><dt>类别说明：</dt><dd><input type="text" name="explain" class="wtxt" /></dd></dl>
            <dl><dt>链接地址：</dt><dd><input type="text" name="url" class="wtxt" value="#" /></dd><dd class="t">不为 # 时，系统将直接链接到此址</dd></dl>
            <dl><dt>分类排序：</dt><dd><input type="text" name="sort" class="int" value="<?=$args['maxsort'] ?>" /></dd><dd class="t">按0,1,2,3的顺序排序</dd></dl>
            <dl><dt>分类状态：</dt><dd><select name="state">
                        <option value="0" selected>禁用</option>
                        <option value="1">启用</option>
                    </select></dd></dl>
            <dl><dt>&nbsp;</dt><dd>
                    <input type="submit" value="确认" class="btnbig" />
                    <a href="javascript:;" action="<?=$basepath?>" class="mainFrame btnbig">返回</a>
                </dd></dl>
        </form>
    </div>
    </div>
</div>